package com.nd.pojo.vo.wx;

import com.nd.pojo.bean.*;
import com.nd.pojo.vo.CommentsListVo;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @program: project2mall
 * @description: 商品详情页VO
 * @author: shit_code_builder
 * @create: 2021-06-08 14:21
 **/

@Builder
@NoArgsConstructor
@AllArgsConstructor
public class GoodDetailVO {

    /**
     * specificationList : [{"name":"规格","valueList":[{"id":90,"goodsId":1073008,"specification":"规格","value":"标准","picUrl":"","addTime":"2018-02-01 00:00:00","updateTime":"2018-02-01 00:00:00","deleted":false}]}]
     * groupon : []
     * issue : [{"id":1,"question":"购买运费如何收取？","answer":"单笔订单金额（不含运费）满88元免邮费；不满88元，每单收取10元运费。\n(港澳台地区需满","addTime":"2018-02-01 00:00:00","updateTime":"2018-02-01 00:00:00","deleted":false},{"id":2,"question":"使用什么快递发货？","answer":"严选默认使用顺丰快递发货（个别商品使用其他快递），配送范围覆盖全国大部分地区（港澳台地区除","addTime":"2018-02-01 00:00:00","updateTime":"2018-02-01 00:00:00","deleted":false},{"id":3,"question":"如何申请退货？","answer":"1.自收到商品之日起30日内，顾客可申请无忧退货，退款将原路返还，不同的银行处理时间不同，","addTime":"2018-02-01 00:00:00","updateTime":"2018-02-01 00:00:00","deleted":false},{"id":4,"question":"如何开具发票？","answer":"1.如需开具普通发票，请在下单时选择\u201c我要开发票\u201d并填写相关信息（APP仅限2.4.0及以","addTime":"2018-02-01 00:00:00","updateTime":"2018-02-01 00:00:00","deleted":false}]
     * userHasCollect : 0
     * shareImage :
     * comment : {"data":[],"count":0}
     * attribute : []
     * brand : {}
     * productList : [{"id":91,"goodsId":1073008,"specifications":["标准"],"price":149,"number":99,"url":"http://yanxuan.nosdn.127.net/619e46411ccd62e5c0f16692ee1a85a0.png","addTime":"2018-02-01 00:00:00","updateTime":"2020-04-27 22:03:33","deleted":false}]
     * info : {"id":1073008,"goodsSn":"1073008","name":"铸铁珐琅牛排煎锅","categoryId":1005007,"brandId":0,"gallery":["http://yanxuan.nosdn.127.net/61a56890eada2439eb4ff0a613cf8347.jpg","http://yanxuan.nosdn.127.net/61a56890eada2439eb4ff0a613cf8347.jpg","http://yanxuan.nosdn.127.net/61a56890eada2439eb4ff0a613cf8347.jpg","http://yanxuan.nosdn.127.net/61a56890eada2439eb4ff0a613cf8347.jpg","http://yanxuan.nosdn.127.net/61a56890eada2439eb4ff0a613cf8347.jpg"],"keywords":"","brief":"沥油隔水，煎出外焦里嫩","isOnSale":true,"sortOrder":4,"picUrl":"http://yanxuan.nosdn.127.net/619e46411ccd62e5c0f16692ee1a85a0.png","shareUrl":"","isNew":false,"isHot":false,"unit":"件","counterPrice":169,"retailPrice":149,"addTime":"2018-02-01 00:00:00","updateTime":"2018-02-01 00:00:00","deleted":false,"detail":""}
     */
    private List<SpecificationVO> specificationList;
    private List<Groupon> groupon;
    private List<Issue> issue;
    private int userHasCollect = 0;
    private String shareImage = "";
    private WXCommentsListVo comment;
    private List<Attribute> attribute;
    private Brand brand ;
    private List<GoodsProduct> productList;
    private Goods info;

    public void setAttribute(List<Attribute> attribute) {
        this.attribute = attribute;
    }

    public void setBrand(Brand brand) {
        this.brand = brand;
    }

    public void setComment(WXCommentsListVo comment) {
        this.comment = comment;
    }

    public void setInfo(Goods info) {
        this.info = info;
    }

    public void setSpecificationList(List<SpecificationVO> specificationList) {
        this.specificationList = specificationList;
    }

    public void setGroupon(List<Groupon> groupon) {
        this.groupon = groupon;
    }

    public void setIssue(List<Issue> issue) {
        this.issue = issue;
    }

    public void setProductList(List<GoodsProduct> productList) {
        this.productList = productList;
    }

    public int getUserHasCollect() {
        return userHasCollect;
    }

    public String getShareImage() {
        return shareImage;
    }

    public WXCommentsListVo getComment() {
        return comment;
    }

    public Brand getBrand() {
        return brand;
    }

    public Goods getInfo() {
        return info;
    }

    public List<SpecificationVO> getSpecificationList() {
        return specificationList;
    }

    public List<Groupon> getGroupon() {
        return groupon;
    }

    public List<Issue> getIssue() {
        return issue;
    }

    public List<Attribute> getAttribute() {
        return attribute;
    }

    public List<GoodsProduct> getProductList() {
        return productList;
    }
}
